﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Vaffanculo.Presentation.Component.WizardControl.Utils
{
    public class ActionWizardManager
    {
        private readonly List<AcctionWizard> _actions = new List<AcctionWizard>();

        public void Attach(AcctionWizard acctionWizard)
        {
            _actions.Add(acctionWizard);
        }

        public void Detach(AcctionWizard acctionWizard)
        {
            _actions.Remove(acctionWizard);
        }

        public void Notify()
        {
            foreach (var action in _actions)
            {
                action.Update();
            }
        }
    }
}
